#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QString>
#include <QMessageBox>
#include <QSqlDatabase>
#include <QSqlQuery>
#include "stu_user.h"
#include "tea_user.h"
#include "bootuser.h"
#include "login.h"
extern QString name;
QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private slots:
    void on_Sign_in_clicked();

    //void on_student_toggled(bool);

    void on_Sign_up_clicked();

private:
    Ui::Widget *ui;
    QSqlDatabase db;
    QString useraccount;
    QString password;
    QString id;
    QString psd;
    QString db_name;
    QString identity;
    QString cmd;//数据库命令
};
#endif // WIDGET_H
